package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户银行卡
 * </p>
 *
 * @author lst
 * @since 2018-12-07
 */
@TableName("USER_BANK_CARD")
public class BankCard implements Serializable{
    /**
     * 银行卡ID
     */
    @TableId(value = "CARD_ID", type = IdType.ID_WORKER)
    private Long cardId;
    /**
     * 用户ID
     */
    @TableField(value = "USER_ID")
    private Long userId;
    /**
     * 银行卡绑定姓名
     */
    @TableField(value = "CARD_NAME")
    private String cardName;
    /**
     * 银行卡绑定电话号
     */
    @TableField(value = "CARD_PHONE")
    private String cardPhone;
    /**
     * 银行卡卡号
     */
    @TableField(value = "CARD_NUMBER")
    private Long cardNumber;
    /**
     * 银行卡密码
     */
    @TableField(value = "CARD_PASSWORD")
    private Integer cardPassword;

    /**
     * 卡内余额
     */
    @TableField(value = "CARD_MONEY")
    private Double cardMoney;

    public Long getCardId() {
        return cardId;
    }

    public void setCardId(Long cardId) {
        this.cardId = cardId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public String getCardPhone() {
        return cardPhone;
    }

    public void setCardPhone(String cardPhone) {
        this.cardPhone = cardPhone;
    }

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public Integer getCardPassword() {
        return cardPassword;
    }

    public void setCardPassword(Integer cardPassword) {
        this.cardPassword = cardPassword;
    }

    public Double getCardMoney() {
        return cardMoney;
    }

    public void setCardMoney(Double cardMoney) {
        this.cardMoney = cardMoney;
    }

    @Override
    public String toString() {

        return "{\"cardId\":\""+cardId+"\",\"cardName\":\""+cardName+"\"," +
                "\"cardPhone\":\""+cardPhone+"\",\"cardNumber\":\""+cardNumber+"\"," +
                "\"cardPassword\":\""+cardPassword+"\",\"cardMoney\":\""+cardMoney+"\"}";
    }
}
